home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / QuickTime VR / MacOS / QuickDraw™ 3D 1.0.6F4 SDK / Development / 3DMF parser / 0.9 version / MFIOCALL.H < prev    next >
Encoding:
C/C++ Source or Header  |  1995-05-24  |  1.7 KB  |  51 lines  |  [TEXT/MPS ]

  1. #ifndef MF3DIOCALLBACK_H
  2. #define    MF3DIOCALLBACK_H
  3. /*==============================================================================
  4.  *
  5.  *    File:        MFIOCALL.H
  6.  *
  7.  *    Function:    File I/O Callback Routines
  8.  *
  9.  *    Author(s):    Rick Wong (RWW)
  10.  *
  11.  *    Copyright:    (c) 1995 by Apple Computer, Inc., all rights reserved.
  12.  *
  13.  *    Change History (most recent first):
  14.  *        Fabio    Changed file name to 8 characters
  15.  *        F29_RWW    File created.
  16.  *==============================================================================
  17.  */
  18.  
  19. #if defined(__COMPILING_ON_MACINTOSH__)
  20. #pragma once
  21. #endif
  22.  
  23. #include "MFTYPES.H"
  24.  
  25. /*==============================================================================
  26.  *    If you are unable to use MF3DOpenInputStdCFile and MF3DOpenOutputStdCFile,
  27.  *    MF3DOpenInput and MF3DOpenOutput require an MF3DProcsPtr which define
  28.  *    six basic I/O routines. You must define the six routines and include
  29.  *    them in an MF3DProcsRec in your call to MF3DOpen.
  30.  *==============================================================================
  31.  */
  32.  
  33. typedef    MF3DErr        (*MF3DOpenProcPtr)(MF3DDataFormatEnum, MF3DUserOpenDataPtr,
  34.                             MF3DUserFilePtr *);
  35. typedef    MF3DErr        (*MF3DReadProcPtr)(MF3DUserFilePtr, MF3DSize, char *);
  36. typedef    MF3DErr        (*MF3DWriteProcPtr)(MF3DUserFilePtr, MF3DSize, const char *);
  37. typedef    MF3DErr        (*MF3DTellProcPtr)(MF3DUserFilePtr, MF3DBinaryFilePosition *);
  38. typedef    MF3DErr        (*MF3DSeekProcPtr)(MF3DUserFilePtr, MF3DBinaryFilePosition);
  39. typedef    MF3DErr        (*MF3DCloseProcPtr)(MF3DUserFilePtr);
  40.  
  41. typedef struct MF3DProcsRec
  42. {    MF3DOpenProcPtr        openProc;
  43.     MF3DReadProcPtr        readProc;
  44.     MF3DWriteProcPtr    writeProc;
  45.     MF3DTellProcPtr        tellProc;
  46.     MF3DSeekProcPtr        seekProc;
  47.     MF3DCloseProcPtr    closeProc;
  48. } MF3DProcsRec, *MF3DProcsPtr;
  49.  
  50. #endif
  51.